package com.yzt.minemodule.wallet.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.zhuju.network.entity.mine.wallet.WalletScreenEntry;
import com.yzt.minemodule.R;

/**
 * author : bob
 * date   : 2022/12/1
 * desc   : 资金 筛选 label
 */
public class WalletLabelAdapter extends BaseQuickAdapter<WalletScreenEntry, BaseViewHolder> {

    public WalletLabelAdapter() {
        super(R.layout.item_wallet_label);
    }

    @Override
    protected void convert(BaseViewHolder holder, WalletScreenEntry item) {
        TextView textView = holder.getView(R.id.wallet_screen_tv);
        textView.setText(item.getFilterName());
        textView.setSelected(item.isCheck());
    }
}
